using AiQiuQuan.Sport.Model.Models;
using AiQiuQuan.Sport.Core;
using AiQiuQuan.Sport.Model.Enums;

namespace AiQiuQuan.Sport.WebApi.Services
{
    /// <summary>
    /// 评论管理
    /// </summary>
    public interface ICommentService : ITransientDependency
    {
        /// <summary>
        /// 分页查询
        /// </summary>
        Task<PageResult<CommentDto>> PageListAsync(CommentPageReqestDto request);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="businessType">业务类型</param>
        /// <param name="id">评论id</param>
        Task<CommentDto> GetAsync(BusinessTypeEnum businessType, Guid id);

        /// <summary>
        /// 新增
        /// </summary>
        Task<UnaryResult> AddAsync(CommentAddDto model);
    }
}
